package cn.iocoder.yudao.module.crm.controller.admin.followup.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "管理后台 - 跟进阶段 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CrmFollowStageConfigRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "28800")
    private Long id;

    @Schema(description = "所属模块")
    private Long moduleId;

    @Schema(description = "跟进阶段")
    private String name;

    private Integer sort;

    @Schema(description = "是否共用")
    private Integer isCommon;

    public void isCommonSetter() {
        this.isCommon = this.moduleId == 0 ? 1 : 0;
    }
}